package demo2;

public class Dark extends Aminal implements IRunning,Swimming, IFly {


    public Dark(String name, int age) {
        super(name, age);
    }

    @Override
    public void run() {
        System.out.println(this.name + " 在跑....");
    }

    @Override
    public void fly() {
        System.out.println(this.name + " 在飞");
    }

    @Override
    public void swim() {
        System.out.println(this.name + " 在游泳");
    }
}
